home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Control Common / CEnumConnections.h < prev    next >
Text File  |  1996-10-17  |  899b  |  30 lines

  1.  
  2. class CEnumConnections : public IEnumConnections
  3. {
  4. public:
  5.     CEnumConnections(LArray* ConnectArray);
  6.     ~CEnumConnections(void);
  7.     
  8.     //  *** IUnknown methods ***
  9.     STDMETHOD(QueryInterface)(REFIID RefID, void** Obj);
  10.     STDMETHOD_(ULONG, AddRef)(void);
  11.     STDMETHOD_(ULONG, Release)(void);
  12.  
  13.     // IEnumConnections methods
  14.     STDMETHOD(Next)(THIS_ unsigned long NumRequested, 
  15.                     CONNECTDATA* ConnectData,
  16.                     unsigned long* NumReturned);
  17.     STDMETHOD(Skip)(THIS_ unsigned long NumSkip);
  18.     STDMETHOD(Reset)(THIS)  { return E_NOTIMPL; }
  19.     STDMETHOD(Clone)(THIS_ IEnumConnections** Enum);
  20.     
  21. private:
  22.     unsigned long         m_RefCount;            // Ref counting
  23.     IUnknown*            m_Unknown;            // controlling unknown
  24.     unsigned long        m_NumConnections;    // Number of connections to enumerate
  25.     unsigned long        m_Current;            // Current position in the enumeration
  26.     LArray*                m_ConnectArray;        // Array of things we enumerate
  27.     
  28. };
  29.  
  30.